public class Test1 {
    public static void main(String[] args) {


    }
}
class Solution {
    public boolean repeatedSubstringPattern(String s) {
        StringBuffer sum = new StringBuffer(s+s);

        sum.deleteCharAt(sum.length()-1);
        sum.deleteCharAt(0);
        if(sum.indexOf(s)!=-1){
            return true ;
        }else{
            return false ;
        }

    }
}